//
//  SLSpecialOffersViewModel.m
//  StarLight
//
//  Created by apple on 16/8/17.
//  Copyright © 2016年 Duke.Wu. All rights reserved.
//

#import "SLSpecialOffersViewModel.h"
#import "SLNetWork.h"


@implementation SLSpecialOffersViewModel

- (instancetype)init
{
    if (self = [super init]) {
        [self getSpecialOfferslist];
    }
    return self;
}

- (void)getSpecialOfferslist{
    @weakify(self)
    NSString *path = [NSString stringWithFormat:@"%@/sys/activitylist?type=%@",baseUrl, [DEFAULTS objectForKey:@"userType"]];
    [SLNetWork getDataWithRequest:path complete:^(id respond, NSError *error) {
        if (!error) {
            @strongify(self)
            self.listArr = [SLSpecialOffersModel mj_objectArrayWithKeyValuesArray:respond[@"data"]];
        }
    }];
}

@end

@implementation SLSpecialOffersModel


@end


